//主数据表格配置
export const columns = [
  { title: '供应商编码', dataIndex: 'gongYingsdm',key: 'gongYingsdm',   align:'center', },
  { title: '供应商名称',  dataIndex: 'gongYingsmc', key: 'gongYingsmc' ,align:'center'},
  { title: '负责人姓名', dataIndex: 'fuZerxm', key: 'fuZerxm', align:'center'  },
  { title: '联系人姓名', dataIndex: 'lianXirxm', key: 'lianXirxm', align:'center' },
  { title: '联系人联系电话', dataIndex: 'lianXirdh', key: 'lianXirdh', align:'center'  },
  {
    title: '操作',
    dataIndex: 'action',
    key: 'operation',
    width: 250,
    align: 'center',
    scopedSlots: { customRender: 'action' }
  },
]
//主数据明细columns
export const columnsDetail=[]

//主数据查询配置
export const q_formInfos = [
  { label:'供应商编码', name:'gongYingsdm',type:'input',placeholder:'供应商编码'},
  { label: '供应商', name: 'keHuPid', type: 'supplier', placeholder: '供应商' },
  // { label: '供应商名称', name: 'gongYingsmc', type: 'input', placeholder: '供应商名称' },
  { label: ['查询', '重置'], type: 'botton' }
]

export const q_formDatas = {
  gongYingsdm: null,
  keHuPid:null,
  gongYingsmc: null,
}

//添加主数据表单配置
export const s_FormInfo = [
  { label: '请输入供应商单位社会信用代码', isDisabled: false, name: 'gongYingsshxxdm', type: 'orgsearch',  placeholder: '' },
  { label: '供应商编码', name: 'gongYingsdm', isDisabled: true, type: 'input', placeholder: ' 供应商编码' },
  // { label: '',name:'keHushxxdm',type:'input',placeholder:' 客户社会信用代码'},
  { label: '供应商名称', name: 'gongYingsmc', isDisabled: true, type: 'input', placeholder: ' 供应商名称' },
  { label: '城市', name: 'chengShi', isDisabled: true, type: 'input', placeholder: ' 城市' },
  { label: '地点', name: 'diZhi', isDisabled: true, type: 'input', placeholder: ' 地点' },
  { label: '负责人姓名', name: 'fuZerxm', isDisabled: true, type: 'input', placeholder: ' 负责人姓名' },
  { label: '负责人联系电话', name: 'fuZerdh', isDisabled: true, type: 'input', placeholder: ' 负责人联系电话' },
  { label: '联系人姓名', name: 'lianXirxm', isDisabled: true, type: 'input', placeholder: ' 联系人姓名' },
  { label: '联系人联系电话', name: 'lianXirdh', isDisabled: true, type: 'input', placeholder: ' 联系人联系电话' },
]
export const s_formDatas = {
  sysSeq: 0,
  pid: '',
  gongYingsdm: null,
  gongYingsOrgPid: null,
  gongYingsshxxdm: null,
  gongYingsmc: null,
  chengShi: null,
  diZhi: null,
  fuZerxm: null,
  fuZerdh: null,
  lianXirxm: null,
  lianXirdh: null,
  zhuangTai: null
}
export const s_rules = {
  gongYingsshxxdm: [{ required: true, message: '信用代码必填', trigger: 'blur' }],
  gongYingsmc: [{ required: true, message: '名称必填', trigger: 'blur' }],
  fuZerxm: [{ required: true, message: '负责人必填', trigger: 'change' }],
  lianXirxm: [{ required: true, message: '联系人必填', trigger: 'change' }],
  lianXirdh: [{ required: true, message: '联系人电话必填', trigger: 'blur' }],
}

//查看明细显示配置
export const infoDatas = [
  // { title: '数据有效区域', id: 'areaUse', value: '' },
  { title: '平台编码', id: 'code', value: '' },
  { title: 'EDI编码', id: 'ediCode', value: '' },
  { title: '编码', id: 'standardCode', value: '' },
  { title: '医保代码', id: 'medicareCode', value: '' },
  { title: '省医保代码', id: 'medicareCode2', value: '' },
  { title: '市医保代码', id: 'medicareCode3', value: '' },
  { title: '一级分类（学科、品类）', id: 'first', value: '' },
  { title: '二级分类（用途、品目）', id: 'second', value: '' },
  { title: '三级分类（部位、功能、品种）', id: 'third', value: '' },
  { title: '品名', id: 'productNameZh', value: '' },
  { title: '英文名称', id: 'productNameEn', value: '' },
  { title: '通用名(商品名)', id: 'commonName', value: '' },
  { title: '规格（特征、参数）', id: 'spec', value: '' },
  { title: '型号(剂型)', id: 'model', value: '' },
  { title: '描述', id: 'disc', value: '' },
  { title: '品牌', id: 'brand', value: '' },
  { title: '上市许可持有企业Pid', id: 'mahOrgPid', value: '' },
  { title: '上市许可持有企业社会编码', id: 'mahCode', value: '' },
  { title: '上市许可持有企业中文名', id: 'mahZh', value: '' },
  { title: '上市许可持有企业英文名', id: 'mahEn', value: '' },
  { title: '生产企业Pid', id: 'manufacturerOrgPid', value: '' },
  { title: '生产企业社会编码', id: 'manufacturerCode', value: '' },
  { title: '生产企业中文名称', id: 'manufacturerZh', value: '' },
  { title: '生产企业英文名称', id: 'manufacturerEn', value: '' },
  { title: '产地', id: 'origin', value: '' },
  { title: '产品类别', id: 'category', value: '' },
  { title: '计量单位', id: 'measurement', value: '' },
  { title: '药品本位码', id: 'sdc', value: '' },
  { title: '当前批准类型', id: 'approvalType', value: '' },
  { title: '当前注册证号/注册证号', id: 'approvalNum', value: '' },
  { title: '当前有效期始', id: 'approvalDate', value: '' },
  { title: '当前有效期止', id: 'validDate', value: '' },
  { title: '批准证照Pid', id: 'licencePid', value: '' },
  { title: '状态', id: 'state', value: '' },
  { title: '结算方式', id: 'settlement', value: '' },
  { title: '合同编码', id: 'acquisitionCode', value: '' },
  { title: '带量标识', id: 'bulkFlage', value: '' },
  { title: '缩略图', id: 'img', value: '' },
  { title: '照片1', id: 'img1', value: '' },
  { title: '照片2', id: 'img2', value: '' },
  { title: '照片3', id: 'img3', value: '' },
  { title: '参考价', id: 'price', value: '' }
]
